/*
 * @Author: Li Zengkun
 * @Date: 2022-09-12 19:35:06
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-09-13 21:17:41
 * @Description: 
 */

import axios from "axios"

// 创建新的标签
const release = (data) => axios.post(`/tag/`, data)

// 删除标签
const remove = (id, params) => axios.delete(`/tag/${id}`, { params })

// 编辑标签
const edit = (id, data) => axios.put(`/tag/${id}`, data)

// 获取标签列表
const list = (params) => axios.get(`/tag/list`, { params })

export default {
    release,
    remove,
    edit,
    list
}